<script type="text/javascript" language="Javascript">
	  function quickRedReference() {
	    window.open( 
	      "http://hobix.com/textile/quick.html",
	      "redRef",
	      "height=600,width=550,channelmode=0,dependent=0," +
	      "directories=0,fullscreen=0,location=0,menubar=0," +
	      "resizable=0,scrollbars=1,status=1,toolbar=0" 
	    );
	  }
</script>
	<div id="form_error">
		<%= error_messages_for 'page' %>
	</div>
<div id="page_form">
	<table class="form_table" border="0">
		<tr>
			<td>
				<table class="textarea" cellpadding="0" cellspacing="0" width="100%">
					<tr>
						<td class="left_part_form">
							<div class="form_label_text">Title:</div>
						</td>
						<td>
							<%= text_field 'page', 'title', :size => "50"  %>
						</td>
						<td style="padding: 2px 5px 0px 0px;" nowrap="nowrap" align="center">
							<input type="checkbox" id="page_user_id" name="page[user_id]" value="<%= @session[:user_id]%>" <% if @page.user_id == @session[:user_id] %> checked="checked"  <% end %> /><label for="page_user_id">Private Page</label>
						<td>
					</tr>
				</table>
				
			</td>
		</tr>

		<tr>
			<td>
				<table class="textarea" cellpadding="0" cellspacing="0">
					<tr>
						<td class="left_part_form">
							<div class="form_label_area">Text:</div>
						</td>
						<td>
							<%= text_area 'page', 'text', :cols => 70, :rows => 40  %>
						</td>
					</tr>
				</table>
			</td>
		</tr>

		<tr>
			<td>
				<table border="0" width="100%">
					<tr>
						<td><%= submit_tag @submit_name, :class => "submit" %>&nbsp;<input type="reset" /></td>
						<td align="right"><a href="javascript:quickRedReference();">Page Style Documentation</a></td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</div>

